//
//  Database.h
//  Hairdressing
//
//  Created by jiangtao on 13-11-2.
//  Copyright (c) 2013年 jiangtao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabaseAdditions.h"

#define DATABASE_NAME @"message.sqlite"

@class FMDatabase;
@interface DBAccess : NSObject {
	NSString * _name;
}
/// 数据库操作对象，当数据库被建立时，会存在次至
@property (nonatomic, readonly) FMDatabase * dataBase;  // 数据库操作对象
/// 单例模式
+(DBAccess *) defaultDBManager;
- (void)closeDatabase;

@end
